<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="format-detection" content="telephone=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  <link rel="alternate icon" type="image/png" href="assets/i/favicon.png">
  <link rel="stylesheet" href="assets/css/amazeui.min.css"/>
  <title>首页</title>
 
  <script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.js"></script>
<script src="assets/js/handlebars.min.js"></script>
<script src="assets/js/amazeui.widgets.helper.js"></script>
</head>
<body>
<header class="am-topbar am-topbar-fixed-top">
  <div class="am-container">
    <h1 class="am-topbar-brand">
      <a href="#">Shopping</a>
    </h1>

    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-secondary am-show-sm-only"
            data-am-collapse="{target: '#collapse-head'}"><span class="am-sr-only">导航切换</span> <span
        class="am-icon-bars"></span></button>

    <div class="am-collapse am-topbar-collapse" id="collapse-head">
      <ul class="am-nav am-nav-pills am-topbar-nav">
        <li ><a href="index.jsp">首页</a></li>
        <li ><a href="productshow.jsp">商品展示</a></li>
        <li ><a href="MyShoppingCar.jsp">我的购物车</a></li>
        <li><a href="MyOrderForm.jsp">我的订单</a></li>
        <li class="am-active"><a href="content.jsp">联系我们</a></li>
        </li>
      </ul>
	<%
		if(session.getAttribute("user") == null) {
	%>
	<div class="am-topbar-right">
        <button class="am-btn am-btn-secondary am-topbar-btn am-btn-sm" onclick="location.href='regin.jsp';"><span class="am-icon-pencil" ></span> 注册</button>
      </div>

      <div class="am-topbar-right">
        <button class="am-btn am-btn-primary am-topbar-btn am-btn-sm"onclick="location.href='login.jsp';"><span class="am-icon-user"></span> 登录</button>
      </div>
	<%
		} else {
			%>
			<div class="am-topbar-right">
			 
			 <button class="am-btn am-btn-primary am-topbar-btn am-btn-sm"onclick="location.href='MyCenter.jsp';"><span class="am-icon-user"></span> 个人中心</button>
			<%
		}
	%>
     
    </div>
  </div>
</header>

<p>山东科技大学     软件14-1 wzly
</body>
</html>